#! /bin/sh

# $1 inonegui path
INONEGUI_DIR=$1
if [ ! $INONEGUI_DIR ]; then
        INONEGUI_DIR=/usr/inonegui
fi

export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event2
export PATH=$PATH:$INONEGUI_DIR/bin
export LD_LIBRARY_PATH=$INONEGUI_DIR/lib
export SDL_MOUSEDRV=TSLIB
chmod a+x $INONEGUI_DIR/inogui $INONEGUI_DIR/superdaemon